package testrj.traverser.genericstrategies;

import testrj.traverser.ObjectTraverser;

public class GenericLeafNodeStrategy extends AbstractStrategy {
	public void handle(Object object, ObjectTraverser traverser) {
	}

	public boolean canHandle(Object object) {
		if (object == null) {
			return true;
		}
		if (object.getClass().isPrimitive() || object instanceof java.lang.String || object instanceof java.lang.Number || object instanceof java.lang.Boolean
				|| object instanceof java.lang.Character || object instanceof java.util.Date) {
			return true;
		}
		return false;
	}
}